package Demo2;

//泛型类
public class MyArray2<T> {
    public Object[] array = new Object[10];

    public void setArray(int pos,T z){
        array[pos] = z;
    }

}
